package com.lac.component.lock;

/**
 * @author xiaokuixiao
 * date2025/7/29 14:33
 */

public class Counter {
    private int count = 0;

            public synchronized void increment() {
                count++;
            }

            public synchronized int getCount() {
                return count;
            }
}